public class exception01{
    public static void main(String[] args) {
        int num1 = 10;
        int ek=0;
        try{
            int res = num1/ek;
        }catch (Exception e){
            //e.printStackTrace();
            System.out.println("出现原因是"+e.getMessage());
        }
        
        System.out.println("程序继续运行");
    }
}